<div class="deal_list">
	<?php if($img = $data->getMainImg()) : ?>
		<a href="<?php echo Yii::app()->createUrl('deal/'. $data->id)?>">
			<img alt="<?php echo $data->title?>" src="/uploads/images/thumbnail_320_240_n/<?php echo $img['name'] ?>" />
		</a>
	<?php endif;?>
	<div class='deal_list_data'>	
		<?php echo CHtml::link($data->title, Yii::app()->createUrl('deal/'. $data->id), array('class'=>'main_deal_title')); ?>
		<?php echo $data->short_description ?>
		<div class="deal_list_discount">
			Скидка: <?php echo $data->discount?>%
		</div>
		<b>Цена:</b> <?php echo $data->price ? $data->price : 'N/A'?><br />
		<small><?php echo CHtml::link('подробнее &raquo;&raquo;', Yii::app()->createUrl('deal/'. $data->id), array('class'=>'')); ?></small>
	</div>
	<div class="clear"></div>
</div>